/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package alpes.aerolinea;

import alpes.aerolinea.entities.ServicioVideoPeliculas;
import alpes.aerolinea.services.IPeliculasService;
import alpes.aerolinea.services.PeliculasKidsService;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author Daniel
 */

public class PeliculasKidsMenuBean {

    private List<ServicioVideoPeliculas> peliculas;
    @EJB
    private IPeliculasService peliculasService;

    /** Creates a new instance of SeriesDeTvMenuBean */
    public PeliculasKidsMenuBean() {
        System.out.println("constructor PEliclas kids beannnnnn!!!!!");
       //seriesDeTvService = new SeriesDeTvService();
    }

    @PostConstruct
    public void init() {
        peliculas =  peliculasService.findAll();
    }


    public List<ServicioVideoPeliculas> getAllPeliculas() {
        return peliculas;
    }
}
